package com.shrct.businessprocess.customerservice.impl;

import com.shrct.businessprocess.customerservice.RCFaultReportServiceSummary;
import com.shrct.businessprocess.customerservice.proxy.RCFaultReportServiceSummaryProxy;
import edu.fudan.langlab.domain.code.impl.CodeImpl;
import edu.fudan.mylang.pf.IObjectFactory;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;

@Entity
@DiscriminatorValue("RCFAULTREPORTSERVICESUMMARY_TYPE")
public class RCFaultReportServiceSummaryImpl extends CodeImpl implements RCFaultReportServiceSummary {
  public RCFaultReportServiceSummaryImpl() {
    super();
  }
  
  public static RCFaultReportServiceSummary create(final IObjectFactory objectFactory) {
    com.shrct.businessprocess.customerservice.RCFaultReportServiceSummary rCFaultReportServiceSummary = new com.shrct.businessprocess.customerservice.impl.RCFaultReportServiceSummaryImpl(
    );
    objectFactory.create(rCFaultReportServiceSummary);
    return rCFaultReportServiceSummary;			
    
  }
  
  public static RCFaultReportServiceSummary createRCFaultReportServiceSummaryImpl(final IObjectFactory objectFactory, final Procedure1<RCFaultReportServiceSummary> init) {
    com.shrct.businessprocess.customerservice.RCFaultReportServiceSummary rCFaultReportServiceSummary = new com.shrct.businessprocess.customerservice.impl.RCFaultReportServiceSummaryImpl(
    );
    objectFactory.create(rCFaultReportServiceSummary);
    init.apply(rCFaultReportServiceSummary);
    
    return rCFaultReportServiceSummary;			
    
  }
  
  public RCFaultReportServiceSummaryProxy toProxy() {
    com.shrct.businessprocess.customerservice.proxy.RCFaultReportServiceSummaryProxy proxy = new com.shrct.businessprocess.customerservice.proxy.RCFaultReportServiceSummaryProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
